<template>
  <div class="header">
      <div class="header-left">
          <span class="fa fa-angle-left fa-2x fa1"></span>
      </div>
      <div class="header-input">
          <span class="fa fa-search fa2"></span>
          输入城市/景点/游戏主题</div>
          <router-link to="/city">
            <div class="header-right">
                {{this.$store.state.city}}
                <span class="fa fa-angle-down fa-2x fa3"></span>
             </div>      
           </router-link>
  </div>
</template>

<script>
export default {
  name: "HomeHeader",
  props: {
    city:String
  }
};
</script>

<style lang="stylus" scoped>
@import "~styles/varibles.styl";
.header {
  display: flex;
  height: 0.86rem;
  background: $bgcolor;
  color: #fff;
  line-height: 0.86rem;
  position: fixed;
  top: 0rem;   
  z-index: 2;
  width: 100%;
}
.header-left {
  width: 0.64rem;
  float: left;
}
.header-input {
  flex: 1;
  margin-top: 0.12rem;
  background: #fff;
  line-height: 0.64rem;
  height: 0.64rem;
  border-radius: 0.1rem;
  margin-left: 0.2rem;
  color: #ccc;
}
.header-right {
  width: 1.24rem;
  float: right;
  text-align: center;
  color:#fff;
}
.fa1 {
  margin-left: 0.25rem;
  margin-top: 0.11rem;
}
.fa2 {
  margin-left: 0.2rem;
  margin-right: 0.1rem;
}
.fa3 {
     position: relative;
    top: 0.1rem;
}
</style>
